package com.chart.web.controller.openfeign;

import com.chart.chart.domian.req.UListReq;
import com.chart.common.core.domain.model.LoginBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

@FeignClient(name = "topchartsClient", url = "https://www.topcharts.cn")
public interface ExternalServiceClient {

    // 调用第三方服务的登录接口
    @PostMapping("/api/login")
    String login(@RequestBody LoginBody loginBody);



    @PostMapping("/api/statistics/list")
    Map<String, Object> getList(@RequestBody UListReq req);


}
